|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
this is information on a product in full production. january 2015 docid025644 rev 3 1/135 stm32f401xd stm32f401xe arm ? cortex ? -m4 32b mcu+fpu, 105 dmips, 512kb flash/96kb ram, 11 tims , 1 adc, 11 comm. interfaces datasheet - production data features ? core: arm ? 32-bit cortex ? -m4 cpu with fpu, adaptive real-time accelerator (art accelerator?) allowing 0-wait state execution from flash memory, frequency up to 84 mhz, memory protection unit, 105 dmips/1.25 dmips/ mhz (dhrystone 2.1), and dsp instructions ? memories ? up to 512 kbytes of flash memory ? up to 96 kbytes of sram ? clock, reset and supply management ? 1.7 v to 3.6 v applic ation supply and i/os ? por, pdr, pvd and bor ? 4-to-26 mhz crystal oscillator ? internal 16 mhz factory-trimmed rc ? 32 khz oscillator for rtc with calibration ? internal 32 khz rc with calibration ? power consumption ? run: 146 a/mhz (peripheral off) ? stop (flash in stop mode, fast wakeup time): 42 a typ @ 25c; 65 a max @25 c ? stop (flash in deep power down mode, fast wakeup time): down to 10 a @ 25 c; 30 a max @25 c ? standby: 2.4 a @25 c / 1.7 v without rtc; 12 a @85 c @1.7 v ?v bat supply for rtc: 1 a @25 c ? 112-bit, 2.4 msps a/d converter: up to 16 channels ? general-purpose dma: 16-stream dma controllers with fifos and burst support ? up to 11 timers: up to six 16-bit, two 32-bit timers up to 84 mhz, each with up to four ic/oc/pwm or pulse counter and quadrature (incremental) encoder input, two watchdog timers (independent and window) and a systick timer ? debug mode ? serial wire debug (swd) & jtag interfaces ?cortex ? -m4 embedded trace macrocell? ? up to 81 i/o ports wit h interrupt capability ? up to 78 fast i/os up to 42 mhz ? all i/o ports are 5 v-tolerant ? up to 12 communi cation interfaces ? up to 3 x i 2 c interfaces (smbus/pmbus) ? up to 3 usarts (2 x 10.5 mbit/s, 1 x 5.25 mbit/s), iso 7816 interface, lin, irda, modem control) ? up to 4 spis (up to 42mbit/s at f cpu = 84 mhz), spi2 and spi3 with muxed full-duplex i 2 s to achieve audio class accuracy via internal audio pll or external clock ? sdio interface ? advanced connectivity: usb 2.0 full-speed device/host/otg controller with on-chip phy ? crc calculation unit ? 96-bit unique id ? rtc: subsecond accuracy, hardware calendar ? all packages (wlcsp49, lqfp64/100, ufqfpn48, ufbga100) are ecopack ? 2 table 1. device summary reference part number stm32f401xd stm32f401cd, STM32F401RD, stm32f401vd stm32f401xe stm32f401ce, stm32f401re, stm32f401ve lqfp100 (14 14 mm) lqfp64 (10 10 mm) ufqfpn48 (7 7 mm) ufbga100 (7 7 mm) wlcsp49 (3.06 x 3.06 mm) ) % * $ www.st.com
contents stm32f401xd stm32f401xe 2/135 docid025644 rev 3 contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.1 compatibility with stm32f4 series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3 functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.1 arm ? cortex ? -m4 with fpu core with embedded flash and sram . . . 15 3.2 adaptive real-time memory accelerator (art accelerator?) . . . . . . . . . 15 3.3 memory protection unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.4 embedded flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5 crc (cyclic redundancy check) calculation unit . . . . . . . . . . . . . . . . . . . 16 3.6 embedded sram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.7 multi-ahb bus matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.8 dma controller (dma) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.9 nested vectored interrupt controller (nvic) . . . . . . . . . . . . . . . . . . . . . . . 18 3.10 external interrupt/event controller (exti) . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.11 clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.12 boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.13 power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.14 power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.14.1 internal reset on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.14.2 internal reset off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.15 voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.15.1 regulator on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.15.2 regulator off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.15.3 regulator on/off and in ternal power supply super visor availability . . 25 3.16 real-time clock (rtc) and backup registers . . . . . . . . . . . . . . . . . . . . . . 25 3.17 low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.18 v bat operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.19 timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.19.1 advanced-control timers (tim1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.19.2 general-purpose timers (timx) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 docid025644 rev 3 3/135 stm32f401xd stm32f401xe contents 4 3.19.3 independent watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.19.4 window watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.19.5 systick timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.20 inter-integrated circuit interface (i2c) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.21 universal synchronous/asynchronous re ceiver transmitters (usart) . . 29 3.22 serial peripheral interface (spi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.23 inter-integrated sound (i 2 s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.24 audio pll (plli2s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.25 secure digital input/output interface (sdio) . . . . . . . . . . . . . . . . . . . . . . . 31 3.26 universal serial bus on-the-go full-speed (otg_fs) . . . . . . . . . . . . . . . . 31 3.27 general-purpose input/outputs (gpios) . . . . . . . . . . . . . . . . . . . . . . . . . . 31 3.28 analog-to-digital converter (adc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 3.29 temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 3.30 serial wire jtag debug port (swj-dp) . . . . . . . . . . . . . . . . . . . . . . . . . . 32 3.31 embedded trace macrocell? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4 pinouts and pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 5 memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6 electrical characteristi cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.1 parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.1.1 minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.1.2 typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.1.3 typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.1.4 loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.1.5 pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 6.1.6 power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 6.1.7 current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 6.2 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 6.3 operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 6.3.1 general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 6.3.2 vcap1/vcap2 external capacitors . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 6.3.3 operating conditions at power-up/power-down (regulator on) . . . . . . . 63 6.3.4 operating conditions at power-up / power-down (regulator off) . . . . . 63 6.3.5 embedded reset and power control bloc k characteristics . . . . . . . . . . . 64 contents stm32f401xd stm32f401xe 4/135 docid025644 rev 3 6.3.6 supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 6.3.7 wakeup time from low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 6.3.8 external clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 6.3.9 internal clock source charac teristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 6.3.10 pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 6.3.11 pll spread spectrum clock generatio n (sscg) characteristics . . . . . . 84 6.3.12 memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 6.3.13 emc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 6.3.14 absolute maximum ratings (electrical sensitivity) . . . . . . . . . . . . . . . . . 89 6.3.15 i/o current injection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 6.3.16 i/o port characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 6.3.17 nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 6.3.18 tim timer characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 6.3.19 communications interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 6.3.20 12-bit adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 6.3.21 temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 6.3.22 v bat monitoring characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 6.3.23 embedded reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 6.3.24 sd/sdio mmc card host interface (sdio) characteristics . . . . . . . . . 113 6.3.25 rtc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 7 package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 7.1 package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 7.1.1 wlcsp49, 3.06 x 3.06 mm, 0.4 mm pitch wafer level chip size package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 7.1.2 ufqfpn48, 7 x 7 mm, 0.5 mm pitch package . . . . . . . . . . . . . . . . . . 119 7.1.3 lqfp64, 10 x 10 mm, 64-pin low-profile quad flat package . . . . . . . . 122 7.1.4 lqfp100, 14 x 14 mm, 100-pin low-profile quad fl at package . . . . . . 125 7.1.5 ufbga100, 7 x 7 mm, 0.5 mm pitch package . . . . . . . . . . . . . . . . . . 128 7.2 thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 7.2.1 reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 8 part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 9 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 docid025644 rev 3 5/135 stm32f401xd stm32f401xe list of tables 6 list of tables table 1. device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. stm32f401xd/xe features and peripheral counts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 3. regulator on/off and internal power supply superv isor availability. . . . . . . . . . . . . . . . . 25 table 4. timer feature comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 table 5. comparison of i2c analog and digital filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 table 6. usart feature comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 7. legend/abbreviations used in the pinout table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 8. stm32f401xd/xe pin definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 8 table 9. alternate function mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 table 10. stm32f401xd register boundary addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 table 11. voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 table 12. current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 table 13. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 table 14. general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 table 15. features depending on the operating power supply range . . . . . . . . . . . . . . . . . . . . . . . . 61 table 16. vcap1/vcap2 operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 table 17. operating conditions at power-up / power-down (r egulator on) . . . . . . . . . . . . . . . . . . . . 63 table 18. operating conditions at power-up / power-down (r egulator off). . . . . . . . . . . . . . . . . . . . 63 table 19. embedded reset and power control block characterist ics. . . . . . . . . . . . . . . . . . . . . . . . . . 64 table 20. typical and maximum current consumption, code with data processing (art accelerator disabled) running from sram - v dd = 1.7 v . . . . . . . . . . . . . . . . . . . . . . . . . . 66 table 21. typical and maximum current consumption, code with data processing (art accelerator disabled) running from sram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 table 22. typical and maximum current consumption in run mode, code with data processing (art accelerator enabled except pr efetch) running from flash memory- v dd = 1.7 v . . . 67 table 23. typical and maximum current consumption in run mode, code with data processing (art accelerator enabled except pref etch) running from flash memory - v dd = 3.3 v . . 67 table 24. typical and maximum current consumption in run mode, code with data processing (art accelerator disabled) running from flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . 68 table 25. typical and maximum current consumption in run mode, code with data processing (art accelerator enabled with prefetch) running fr om flash memory . . . . . . . . . . . . . . . . 68 table 26. typical and maximum current consumption in sleep mode . . . . . . . . . . . . . . . . . . . . . . . . 69 table 27. typical and maximum current consumptions in stop mode - v dd =1.8 v . . . . . . . . . . . . . . 69 table 28. typical and maximum current consumption in stop mode - v dd =3.3 v. . . . . . . . . . . . . . . 70 table 29. typical and maximum current consumption in standby mode - v dd =1.8 v . . . . . . . . . . . . 70 table 30. typical and maximum current consumption in standby mode - v dd =3.3 v . . . . . . . . . . . . 70 table 31. typical and maximum current consumptions in v bat mode. . . . . . . . . . . . . . . . . . . . . . . . 71 table 32. switching output i/o current cons umption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 33. peripheral current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 table 34. low-power mode wakeup timings (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 35. high-speed external user clock characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 table 36. low-speed external user clock characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 table 37. hse 4-26 mhz oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 8 table 38. lse oscillator characteristics (f lse = 32.768 khz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 table 39. hsi oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 table 40. lsi oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 table 41. main pll characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 table 42. plli2s (audio pll) characteristic s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 list of tables stm32f401xd stm32f401xe 6/135 docid025644 rev 3 table 43. sscg parameters constraint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 44. flash memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 table 45. flash memory programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 table 46. flash memory programming with v pp voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 table 47. flash memory endurance and data retention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 table 48. ems characteristics for lqfp100 package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 table 49. emi characteristics for wlcsp49 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 table 50. emi characteristics for lqfp100 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 table 51. esd absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 table 52. electrical sensitivities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 table 53. i/o current injection susceptibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 table 54. i/o static characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 table 55. output voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 table 56. i/o ac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 table 57. nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 table 58. timx characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 table 59. i 2 c characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 table 60. scl frequency (f pclk1 = 42 mhz, v dd = v dd_i2c = 3.3 v) . . . . . . . . . . . . . . . . . . . . . . . . . 99 table 61. spi dynamic characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 table 62. i 2 s dynamic characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 table 63. usb otg fs startup time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 table 64. usb otg fs dc electrical characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 table 65. usb otg fs electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 table 66. adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 table 67. adc accuracy at f adc = 18 mhz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 table 68. adc accuracy at f adc = 30 mhz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 table 69. adc accuracy at f adc = 36 mhz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 table 70. adc dynamic accuracy at f adc = 18 mhz - limited test conditions . . . . . . . . . . . . . . . . . 109 table 71. adc dynamic accuracy at f adc = 36 mhz - limited test conditions . . . . . . . . . . . . . . . . . 109 table 72. temperature sensor characteristic s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2 table 73. temperature sensor calibration values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 table 74. v bat monitoring characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 table 75. embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 table 76. internal reference voltage calibration values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 table 77. dynamic characteristics: sd / mmc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 table 78. rtc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 table 79. stm32f401xce wlcsp49 wafer level chip size package mechanical data. . . . . . . . . . 116 table 80. wlcsp49 recommended pcb design rules (0.4 mm pi tch) . . . . . . . . . . . . . . . . . . . . . . 118 table 81. ufqfpn48, 7 x 7 mm, 0.5 mm pitch, package mechanical data . . . . . . . . . . . . . . . . . . . 119 table 82. lqfp64, 10 x 10 mm, 64-pin low-profile quad flat package mechanical data . . . . . . . . . 123 table 83. lqpf100, 14 x 14 mm, 100-pin low-profile quad flat package mechanical data . . . . . . . 126 table 84. ufbga100, 7 x 7 mm, 0.50 mm pitch, ultra fine pitch ball grid array package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 table 85. package thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 table 86. ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 table 87. device order codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 table 88. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 docid025644 rev 3 7/135 stm32f401xd stm32f401xe list of figures 8 list of figures figure 1. compatible board design for lqfp100 package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 2. compatible board design for lqfp64 package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 3. stm32f401xd/xe block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 4. multi-ahb matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 figure 5. power supply supervisor interconnection with in ternal reset off . . . . . . . . . . . . . . . . . . . 20 figure 6. pdr_on control with internal re set off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 figure 7. regulator off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 figure 8. startup in regulator off: slow v dd slope - power-down reset risen after v cap_1 /v cap_2 stabilization. . . . . . . . . . . . . . . . . . . . . . . . . 24 figure 9. startup in regulator off mode: fast v dd slope - power-down reset risen before v cap_1 /v cap_2 stabilization . . . . . . . . . . . . . . . . . . . . . . . 24 figure 10. stm32f401xd/xe wlcsp49 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 figure 11. stm32f401xd/xe ufqfpn48 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 12. stm32f401xd/xe lqfp64 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 13. stm32f401xd/xe lqfp100 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 figure 14. stm32f401xd/xe ufbga100 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 figure 15. memory map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 figure 16. pin loading conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 figure 17. input voltage measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 figure 18. power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 figure 19. current consumption measurement scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 figure 20. external capacitor c ext . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 figure 21. typical v bat current consumption (lse and rtc on) . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 figure 22. high-speed external clock source ac timing diagra m . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 figure 23. low-speed external clock source ac timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 figure 24. typical application with an 8 mhz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 figure 25. typical application with a 32.768 khz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 figure 26. acc hsi versus temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 figure 27. acc lsi versus temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 figure 28. pll output clock waveforms in center spread mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 figure 29. pll output clock waveforms in down spread mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 figure 30. ft i/o input ch aracteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 figure 31. i/o ac characteristics definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 figure 32. recommended nrst pin protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 figure 33. i 2 c bus ac waveforms and measurement ci rcuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 figure 34. spi timing diagram - slave mode and cpha = 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 figure 35. spi timing diagram - slave mode and cpha = 1 (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 figure 36. spi timing diagram - master mode (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 figure 37. i 2 s slave timing diagram (philips protocol) (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 figure 38. i 2 s master timing diag ram (philips protocol) (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 figure 39. usb otg fs timings: definition of data signal rise and fall time . . . . . . . . . . . . . . . . . . . 106 figure 40. adc accuracy characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 figure 41. typical connection diagram using the adc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 figure 42. power supply and reference decoupling (v ref+ not connected to v dda ). . . . . . . . . . . . . 111 figure 43. power supply and reference decoupling (v ref+ connected to v dda ). . . . . . . . . . . . . . . . 111 figure 44. sdio high-speed mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 figure 45. sd default mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 figure 46. wlcsp49 wafer level chip size package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 list of figures stm32f401xd stm32f401xe 8/135 docid025644 rev 3 figure 47. wlcsp49 0.4 mm pitch wafer level chip size recommended footprint . . . . . . . . . . . . . . 117 figure 48. example of wlcsp49 marking (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 figure 49. ufqfpn48, 7 x 7 mm, 0.5 mm pitch, package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . 119 figure 50. ufqfpn48 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 figure 51. example of ufqfpn48 marking (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 figure 52. lqfp64, 10 x 10 mm, 64-pin low-profile quad flat package outline . . . . . . . . . . . . . . . . . 122 figure 53. lqfp64 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3 figure 54. example of lqfp64 marking (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 figure 55. lqfp100, 14 x 14 mm, 100-pin low-profile quad flat package outline . . . . . . . . . . . . . . . 125 figure 56. lqfp100 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 figure 57. example of lqpf100 marking (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 figure 58. ufbga100, 7 x 7 mm, 0.50 mm pitch, ultra fine pitch ball grid array package outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 figure 59. recommended pcb design rules for pads (0.5 mm-pitch bga) . . . . . . . . . . . . . . . . . . . 129 figure 60. example of ufbga100 marking (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 docid025644 rev 3 9/135 stm32f401xd stm32f401xe introduction 54 1 introduction this datasheet provides the description of the stm32f401xd/xe line of microcontrollers. the stm32f401xd/xe datasheet should be read in conjunction with rm0368 reference manual which is available from the stmicroelectronics website www.st.com . it includes all information concerning flash memory programming. for information on the cortex ? -m4 core, please refer to the cortex ? -m4 programming manual (pm0214) available from www.st.com . description stm32f401xd stm32f401xe 10/135 docid025644 rev 3 2 description the stm32f401 x d/ x e devices are based on the high-performance arm ? cortex ? -m4 32- bit risc core operating at a frequency of up to 84 mhz. its cortex ? -m4 core features a floating point unit (fpu) single precision which supports all arm single-precision data- processing instructions and data types. it also implements a full set of dsp instructions and a memory protection unit (mpu) which enhances application security. the stm32f401xd/xe incorporate high-speed em bedded memories (512 kbytes of flash memory, 96 kbytes of sram), and an extens ive range of enhanced i/os and peripherals connected to two apb buses, two ahb bus es and a 32-bit multi-ahb bus matrix. all devices offer one 12-bit adc, a low-pow er rtc, six general-purpose 16-bit timers including one pwm timer for motor control, tw o general-purpose 32-bit timers. they also feature standard and advanced communication interfaces. ? up to three i 2 cs ? up to four spis ? two full duplex i 2 ss. to achieve audio class accuracy, the i 2 s peripherals can be clocked via a dedicated internal audio pll or via an external clock to allow synchronization. ? three usarts ? sdio interface ? usb 2.0 otg full speed interface refer to for the peripherals available for each part number. the stm32f401xd/xe operate in the ?40 to +105 c temperature range from a 1.7 (pdr off) to 3.6 v power supply. a comprehensive set of power-saving m ode allows the design of low-power applications. these features make the stm32f401xd/xe micr ocontrollers suitable for a wide range of applications: ? motor drive and application control ? medical equipment ? industrial applications: plc, inverters, circuit breakers ? printers, and scanners ? alarm systems, video intercom, and hvac ? home audio appliances ? mobile phone sensor hub figure 3 shows the general block diagram of the devices. docid025644 rev 3 11/135 stm32f401xd stm32f401xe description 54 table 2. stm32f401xd/xe features and peripheral counts peripherals stm32f401xd stm32f401xe flash memory in kbytes 384 512 sram in kbytes system 96 timers general- purpose 7 advanced- control 1 communication interfaces spi/ i 2 s 3/2 (full duplex) 4/2 (full duplex) 3/2 (full duplex) 4/2 (full duplex) i 2 c3 usart 3 sdio - 1 - 1 usb otg fs 1 gpios 36 50 81 36 50 81 12-bit adc number of channels 1 10 16 10 16 maximum cpu frequency 84 mhz operating voltage 1.7 to 3.6 v operating temperatures ambient temperatures: ?40 to +85 c/?40 to +105 c junction temperature: ?40 to + 125 c package wlcsp49 ufqfpn48 lqfp64 ufbga100 lqfp100 wlcsp49 ufqfpn48 lqfp64 ufbga100 lqfp100 description stm32f401xd stm32f401xe 12/135 docid025644 rev 3 2.1 compatibility with stm32f4 series the stm32f401xd/xe are fully software and feature compatible with the stm32f4 series (stm32f42x, stm32f43x, stm32f41x, stm32f405 and stm32f407) the stm32f401xd/xe can be used as drop-in replacement of the other stm32f4 products but some slight changes have to be done on the pcb board. figure 1. compatible board design for lqfp100 package 0 6 9 3 ' 3 ' 3 ' 3 ' 3 % 3 % 3 % 3 % 3 ( 3 ( 3 ( 3 ( 3 ( 3 ( 3 % 9 & |